class Day{
    public int year;
    public int month;
    public int day;

    public void Day(){
        System.out.println("今天是"+year+"年"+month+"月"+day+"日");
    }
}
class Student{
    public String name;
    public String sex;
    public int age;
    public int clas;

    public void Set(String name,String sex,int age,int clas){
        this.name=name;
        this.sex=sex;
        this.age=age;
        this.clas=clas;
    }
    public void printf(){
        System.out.println(name+"性别："+sex+"年龄："+age+"班级："+clas);
    }
}

public class Test {
    public static void main(String[] args) {
        Student student1=new Student();
        Student student2=new Student();
        Student student3=new Student();
        student1.Set("张 三  ","男",21,20201);
        student1.printf();
        student2.Set("王谦虚 ","男",21,20201);
        student2.printf();
        student3.Set("王牛逼 ","男",21,20201);
        student3.printf();

}
    public static void main1(String[] args) {
        Day now=new Day();
        now.year=2022;
        now.month=8;
        now.day=13;
        now.Day();
    }


}
